<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>个人基本信息</title>
<script type="text/javascript" src="/Public/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="/Public/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/Public/js/lazyload.js"></script>
<script type="text/javascript" src="/artDialog/artDialog.source.js?skin=default" charset="utf-8"></script>
<script type="text/javascript" src="/Public/js/jquery.ae.image.resize.min.js"></script>
<script type="text/javascript" src="/Public/js/province_city_county.js"></script>

<link rel="stylesheet" href="/Public/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="/theme/default/css/common.css">
<link rel="stylesheet" href="Public/css/homeindex.css">
  <!--[if lte IE 6]>
  <link rel="stylesheet" type="text/css" href="/Public/bootstrap/css/bootstrap-ie6.css">
  <![endif]-->
  <!--[if lte IE 7]>
  <link rel="stylesheet" type="text/css" href="/Public/bootstrap/css/ie.css">
  <![endif]-->
</head>

<body>
<include file="./template/default/Public/header-logined.html" />
  

    <div class="container main">
      <div class="row-fluid">
        <div class="span3">
          <include file="./template/default/Public/sidebar.html" />
        </div><!--/span-->
        <div class="content span9">
          
          <div class="well">
          	<div class="page-header"><h3>个人基本信息</h3></div>
            
            <form class="form-horizontal" method="post" action="/index.php?s=/Home/User/saveProfile">

<fieldset>
		  <div class="control-group">
            <label class="control-label">用户名</label>
            <div class="controls">
           
           <input type="text" value="{$result['username']}" readonly>
            
            </div>
          </div>
          
          <div class="control-group">
            <label class="control-label"><span class="red">*</span>昵称:</label>
            <div class="controls">
           
           <input type="text" value="{$result['nickname']}" name="nickname" id="nickname">&nbsp;<a href="javascript:void(0)" class="btn-small btn-success">检查昵称</a>
            
            </div>
          </div>
          
          
          <div class="control-group">
            <label class="control-label" for="input01"><span class="red">*</span>真实姓名</label>
            <div class="controls">
              <input type="text" class="input-xlarge" id="realname" name="realname" datatype="s2-5" nullmsg="真实姓名不能为空!" value="{$result['realname']}">
              <p class="help-block">
		请输入真实姓名，保密
	      </p>
            </div>
          </div>
          <div class="control-group">
            <label class="control-label" for="optionsCheckbox"><span class="red">*</span>性别</label>
            <div class="controls">
              <label class="radio inline" title="女">女<input type="radio" name="sex_type" value="0" id="sextype_0">&nbsp;&nbsp;</label>
              <label class="radio inline" title="男">男<input type="radio" name="sex_type" value="1" id="sextype_1"></label>
              
            </div>
          </div>
          
          <div class="control-group">
            <label class="control-label" for="optionsCheckbox"><span class="red">*</span>婚姻状况</label>
            <div class="controls">
              <select name="ismarry" id="ismarry">
              	<option value="1">已婚</option>
                <option value="0">未婚</option>
              </select>              
            </div>
          </div>
          <div class="control-group">
            <label class="control-label" for="optionsCheckbox"><span class="red">*</span>居住城市</label>
            <div class="controls">
              <div id="province_area"></div>
              <p class="help-block">选择所在地</p>
            </div>
          </div>
          
          <div class="control-group">
            <label class="control-label" for="optionsCheckbox"><span class="red">*</span>联系手机</label>
            <div class="controls">
            <p class="help-block">
             {$result['mobile']}&nbsp;<a href="javascript:void(0)" class="btn-small btn-warning">更改手机号码</a>
              </p>
            </div>
          </div>
          <script type="text/javascript">
		  $(document).ready(function(){
				$('#sextype_{$result["sex_type"]}').attr('checked','checked');  
				$('#ismarry').val("$result['ismarry']");
				$("#province_area").province_city_county('{$result["province"]}','{$result["city"]}','{$result["county"]}');
				
		  });
		  </script>
          <div class="form-actions">
          <input type="hidden" name="next" value="2"/>
            <button type="submit" class="btn btn-green">确定</button>
            &nbsp;<span id="msg"></span>
          </div>
        </fieldset>

</form>
            
          </div><!--end well-->
         
        </div><!--/span-->
      </div><!--/row-->
      
      </div>

<include file="./template/default/Public/footer-logined.html" />



</body>
</html>